package com.itheima.Junit;
/*
 测试类
* */

import org.junit.Assert;
import org.junit.Test;

public class TestUserService {
         //测试方法，一个方法对应一个测试方法

      @Test
      public  void testLoginName(){
          UserService userService = new UserService();
          String s = userService.loginName("admin", "12345");
          //预期正确性，断言
          Assert.assertEquals("功能可能有错误","登录成功",s);

      }
      @Test
      public  void testSelectName(){
          UserService userService = new UserService();
          userService.selectName();
      }
}
